package vn.com.fis.portal.service.http;

public class UserEntryServiceSoapProxy implements vn.com.fis.portal.service.http.UserEntryServiceSoap {
  private String _endpoint = null;
  private vn.com.fis.portal.service.http.UserEntryServiceSoap userEntryServiceSoap = null;
  
  public UserEntryServiceSoapProxy() {
    _initUserEntryServiceSoapProxy();
  }
  
  public UserEntryServiceSoapProxy(String endpoint) {
    _endpoint = endpoint;
    _initUserEntryServiceSoapProxy();
  }
  
  private void _initUserEntryServiceSoapProxy() {
    try {
      userEntryServiceSoap = (new vn.com.fis.portal.service.http.UserEntryServiceSoapServiceLocator()).getPlugin_LFWS_UserEntryService();
      if (userEntryServiceSoap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)userEntryServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)userEntryServiceSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (userEntryServiceSoap != null)
      ((javax.xml.rpc.Stub)userEntryServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public vn.com.fis.portal.service.http.UserEntryServiceSoap getUserEntryServiceSoap() {
    if (userEntryServiceSoap == null)
      _initUserEntryServiceSoapProxy();
    return userEntryServiceSoap;
  }
  
  public vn.com.fis.portal.model.VideoEntrySoap[] getVideoEntries(long pk) throws java.rmi.RemoteException{
    if (userEntryServiceSoap == null)
      _initUserEntryServiceSoapProxy();
    return userEntryServiceSoap.getVideoEntries(pk);
  }
  
  
}